...
 
Commits (7)
......@@ -3645,11 +3645,11 @@ The form will be open with a person record and has only one FormElement.
* FormElement[1].name = myFavoriteFruits
* FormElement[1].type = Text
* FormElement[1].value = {{SELECT GROUP_CONCAT( CONCAT(f.id, ':', f.name) ORDER BY f.name) FROM FruitPerson AS fp, Fruit AS f WHERE fp.pId={{id:R}} AND fp.fruitId=f.id ORDER BY f.name}}
* FormElement[1].value = {{SELECT GROUP_CONCAT( CONCAT(f.id, ':', f.name)) FROM FruitPerson AS fp, Fruit AS f WHERE fp.pId={{id:R}} AND fp.fruitId=f.id ORDER BY f.name}}
* FormElement[1].parameter:
* typeAheadTag = 1
* typeAheadSql = SELECT f.id, f.name AS value FROM Fruit AS f WHERE f.name LIKE ?
* typeAheadSql = SELECT f.id AS 'id', f.name AS 'value' FROM Fruit AS f WHERE f.name LIKE ?
* typeAheadMinLength = 1
* typeAheadGlueInsert = {{INSERT INTO FruitPerson (pId, fruitId) VALUES ({{id:R}}, {{tagId:V}} ) }}
* typeAheadGlueDelete = {{DELETE FROM FruitPerson WHERE pId={{id:R}} AND fruitId={{tagId:V}} }}
......
......@@ -715,8 +715,11 @@ EOF;
case FE_MODE_SHOW_REQUIRED:
break;
case FE_MODE_REQUIRED:
$attribute .= Support::doAttribute('required', 'required');
break;
case FE_MODE_READONLY:
$attribute .= Support::doAttribute($feMode, $feMode);
// $attribute .= Support::doAttribute($feMode, $feMode);
$attribute .= Support::doAttribute('disabled', 'disabled');
break;
default:
throw new \UserFormException("Unknown mode '$feMode'", ERROR_UNKNOWN_MODE);
......
......@@ -550,9 +550,6 @@ class QuickFormQuery {
$rc = $save->process();
// Reload fresh saved record and fill STORE_RECORD with it.
$this->store->fillStoreWithRecord($this->formSpec[F_TABLE_NAME], $rc, $this->dbArray[$this->dbIndexData], $this->formSpec[F_PRIMARY_KEY]);
$save->processAllUploads($rc);
// Action: After*, Sendmail
......
......@@ -309,6 +309,9 @@ class Save {
}
}
// Reload fresh saved record and fill STORE_RECORD with it. Do this before nativeDoSlave().
$this->store->fillStoreWithRecord($this->formSpec[F_TABLE_NAME], $recordId, $this->db, $this->formSpec[F_PRIMARY_KEY]);
$this->nativeDoSlave($recordId);
return $recordId;
......