Commit 4e66d748 authored by totten's avatar totten
Browse files

INFRA-132 - CRM/Upgrade - Misc

parent 7d8c1168
......@@ -37,7 +37,8 @@ class CRM_Upgrade_Controller extends CRM_Core_Controller {
/**
* Class constructor
*/
function __construct($title = NULL,
function __construct(
$title = NULL,
$action = CRM_Core_Action::NONE,
$modal = TRUE
) {
......
......@@ -99,7 +99,8 @@ class CRM_Upgrade_Form extends CRM_Core_Form {
* @param string $method
* @param null|string $name
*/
function __construct($state = NULL,
function __construct(
$state = NULL,
$action = CRM_Core_Action::NONE,
$method = 'post',
$name = NULL
......
......@@ -266,7 +266,8 @@ WHERE id = %2
$mainLineItem->find(TRUE);
while ($mainLineItem->fetch()) {
$dupeLineItem = new CRM_Price_BAO_LineItem();
foreach ($fields as $fld) { $dupeLineItem->$fld = $mainLineItem->$fld;
foreach ($fields as $fld) {
$dupeLineItem->$fld = $mainLineItem->$fld;
}
$dupeLineItem->find(TRUE);
$dupeLineItem->addWhere("id != $mainLineItem->id");
......
......@@ -143,7 +143,8 @@ class CRM_Upgrade_Snapshot_V4p2_Price_BAO_Field extends CRM_Upgrade_Snapshot_V4p
if ($opId = CRM_Utils_Array::value($index, $opIds)) {
$optionsIds['id'] = $opId;
}
else { $optionsIds['id'] = NULL;
else {
$optionsIds['id'] = NULL;
}
}
CRM_Upgrade_Snapshot_V4p2_Price_BAO_FieldValue::create($options, $optionsIds);
......@@ -219,7 +220,8 @@ class CRM_Upgrade_Snapshot_V4p2_Price_BAO_Field extends CRM_Upgrade_Snapshot_V4p
* @return null
* @static
*/
public static function addQuickFormElement(&$qf,
public static function addQuickFormElement(
&$qf,
$elementName,
$fieldId,
$inactiveNeeded,
......
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