Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Extensions
CiviDiscount
Commits
2e75163c
Commit
2e75163c
authored
Jan 09, 2014
by
Kurund Jalmi
Browse files
Merge pull request #31 from rnao/clone-desc
Append "Copy of" to the description of cloned discount to tell it apart ...
parents
848c8fb6
96dea239
Changes
1
Hide whitespace changes
Inline
Side-by-side
CRM/CiviDiscount/BAO/Item.php
View file @
2e75163c
...
...
@@ -301,6 +301,9 @@ FROM cividiscount_item
unset
(
$item
->
id
);
$item
->
count_use
=
0
;
$item
->
code
=
$newCode
;
if
(
isset
(
$item
->
description
)
&&
$item
->
description
!=
''
)
{
$item
->
description
=
'Copy of '
.
$item
->
description
;
}
CRM_Utils_Hook
::
pre
(
'create'
,
'CiviDiscount'
,
null
,
$params
);
$item
->
save
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment