Commit 2e75163c authored by Kurund Jalmi's avatar 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
......@@ -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();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment