}
$rowCount++;
}
+ //CRM-12970
+ ksort($defaults['discounted_value']);
+ $rowCount = 1;
+ foreach ($defaults['discounted_label'] as $key => $value) {
+ if ($key != $rowCount) {
+ $defaults['discounted_label'][$rowCount] = $value;
+ $defaults['discounted_value'][$rowCount] = $defaults['discounted_value'][$key];
+ unset($defaults['discounted_value'][$key]);
+ unset($defaults['discounted_label'][$key]);
+ foreach ($defaults['discount_option_id'] as &$optionIds) {
+ if (array_key_exists($key, $optionIds)) {
+ $optionIds[$rowCount] = $optionIds[$key];
+ unset($optionIds[$key]);
+ }
+ }
+ }
+ $rowCount++;
+ }
$this->set('discountSection', 1);
$this->buildQuickForm();
* @access public
*/
public function postProcess() {
- $params = array();
$eventTitle = '';
$params = $this->exportValues();