Commit 575bf775 authored by Carsten  Rose's avatar Carsten Rose
Browse files

MultiDB: fix missing dbIndexData in edit link

parent e90a01a3
...@@ -2434,6 +2434,7 @@ abstract class AbstractBuildForm { ...@@ -2434,6 +2434,7 @@ abstract class AbstractBuildForm {
$queryStringArray = [ $queryStringArray = [
SIP_FORM => $formElement[SUBRECORD_PARAMETER_FORM], SIP_FORM => $formElement[SUBRECORD_PARAMETER_FORM],
SIP_RECORD_ID => $targetRecordId, SIP_RECORD_ID => $targetRecordId,
PARAM_DB_INDEX_DATA => $this->formSpec[F_DB_INDEX],
]; ];
// Inherit current F_MODE // Inherit current F_MODE
...@@ -2656,7 +2657,6 @@ abstract class AbstractBuildForm { ...@@ -2656,7 +2657,6 @@ abstract class AbstractBuildForm {
* Create a link (incl. SIP) to delete the current record. * Create a link (incl. SIP) to delete the current record.
* *
* @param string $formName if there is a form, specify that * @param string $formName if there is a form, specify that
* @param string $tableName if there is no form , specify the table from where to delete the record.
* @param int $recordId record to delete * @param int $recordId record to delete
* @param string $mode * @param string $mode
* * mode=RETURN_URL: return complete URL * * mode=RETURN_URL: return complete URL
...@@ -2674,6 +2674,7 @@ abstract class AbstractBuildForm { ...@@ -2674,6 +2674,7 @@ abstract class AbstractBuildForm {
$urlParam[SIP_RECORD_ID] = $recordId; $urlParam[SIP_RECORD_ID] = $recordId;
$urlParam[SIP_FORM] = $formName; $urlParam[SIP_FORM] = $formName;
$urlParam[SIP_MODE_ANSWER] = MODE_JSON; $urlParam[SIP_MODE_ANSWER] = MODE_JSON;
// $urlParam[PARAM_DB_INDEX_DATA] = $this->formSpec[F_DB_INDEX];
$queryString = Support::arrayToQueryString($urlParam); $queryString = Support::arrayToQueryString($urlParam);
......
...@@ -52,6 +52,9 @@ class Dirty { ...@@ -52,6 +52,9 @@ class Dirty {
/** /**
* Init class * Init class
* @param bool $phpUnit
* @param bool $dbIndexData
* @param bool $dbIndexQfq
*/ */
public function __construct($phpUnit = false, $dbIndexData = false, $dbIndexQfq = false) { public function __construct($phpUnit = false, $dbIndexData = false, $dbIndexQfq = false) {
...@@ -65,7 +68,8 @@ class Dirty { ...@@ -65,7 +68,8 @@ class Dirty {
} }
/** /**
* * @param $dbIndexData
* @param $dbIndexQfq
*/ */
private function doDbArray($dbIndexData, $dbIndexQfq) { private function doDbArray($dbIndexData, $dbIndexQfq) {
...@@ -92,7 +96,6 @@ class Dirty { ...@@ -92,7 +96,6 @@ class Dirty {
* @throws UserFormException * @throws UserFormException
*/ */
public function process() { public function process() {
$tableVars = array();
$sipClass = new Sip(); $sipClass = new Sip();
......
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