Commit 96dea239 authored by Stan Dragnev's avatar Stan Dragnev
Browse files

Append "Copy of" to the description of cloned discount to tell it apart from original.

parent 1ccc9e91
......@@ -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();
......
Markdown is supported
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