New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds possibility to define a goal description #9469
Conversation
a46584b
to
b75a2f2
Compare
b75a2f2
to
fc4fda5
Compare
* @return void | ||
*/ | ||
public function updateGoal($idSite, $idGoal, $name, $matchAttribute, $pattern, $patternType, $caseSensitive = false, $revenue = false, $allowMultipleConversionsPerVisit = false) | ||
public function updateGoal($idSite, $idGoal, $name, $matchAttribute, $pattern, $patternType, $caseSensitive = false, $revenue = false, $allowMultipleConversionsPerVisit = false, $description = '') | ||
{ | ||
Piwik::checkUserHasAdminAccess($idSite); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should keep the currently saved $description
if $description = false
and clear it if $description = ''
. false
could be default but I'm not sure what is better and whether is needed / more intuitive. I guess as caseSensitive
and other optional parameters works the same as implemented it's all good and consistent the way it is implemented now 👍
A ui test fails here: http://builds-artifacts.piwik.org/piwik/piwik/goal_description/17418/UIIntegrationTest_goals_manage can you maybe have a look? |
Guess the OmniFixture needs an update, so that the database contains the column. But I would wait until #9272 is merged. |
OK :) |
FYI: We're waiting for #9272 |
@@ -9,7 +9,7 @@ | |||
{% set conversion_rate=goal.conversion_rate %} | |||
{% set name=goal.name %} | |||
<div class="goalEntry" style="clear:both"> | |||
<h2> | |||
<h2 {% if goal.description %}title="{{ goal.description }}"{% endif %}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
escaping is missing?
Targeting for 3.0 instead as it may be a little risky for 2.16.0? |
Replaced by #10057 which targets 3.x branch |
fixes #7346