Commit 49e40991 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Contants, Form:misc

parent c6587b51
...@@ -85,6 +85,7 @@ const ERROR_MISSING_SQL1 = 1025; ...@@ -85,6 +85,7 @@ const ERROR_MISSING_SQL1 = 1025;
const ERROR_CHECKBOX_EQUAL = 1026; const ERROR_CHECKBOX_EQUAL = 1026;
const ERROR_MISSING_ITEM_VALUES = 1027; const ERROR_MISSING_ITEM_VALUES = 1027;
const ERROR_UNKNOWN_FORM_RENDER = 1028; const ERROR_UNKNOWN_FORM_RENDER = 1028;
const ERROR_NAME_LABEL_EMPTY = 1029;
// DB Errors // DB Errors
//const ERROR_DB_QUERY_SIMPLE = 2000; //const ERROR_DB_QUERY_SIMPLE = 2000;
......
...@@ -177,7 +177,9 @@ class Form { ...@@ -177,7 +177,9 @@ class Form {
$this->store->setVar(SYSTEM_FORM, $formName, STORE_SYSTEM); $this->store->setVar(SYSTEM_FORM, $formName, STORE_SYSTEM);
$this->formSpec = $this->eval->parseArray($this->db->sql("SELECT * FROM Form AS f WHERE f.name LIKE ? AND f.deleted='no'", ROW_EXACT_1, [$formName])); $this->formSpec = $this->eval->parseArray($this->db->sql("SELECT * FROM Form AS f WHERE f.name LIKE ? AND f.deleted='no'", ROW_EXACT_1, [$formName]));
HelperFormElement::explodeParameter($this->formSpec);
// Clear
$this->store->setVar(SYSTEM_FORM_ELEMENT, '', STORE_SYSTEM); $this->store->setVar(SYSTEM_FORM_ELEMENT, '', STORE_SYSTEM);
// "SELECT *, ? AS 'nestedInFieldSet' FROM FormElement AS fe WHERE fe.formId = ? AND fe.deleted = 'no' AND FIND_IN_SET(fe.class, ? ) AND fe.feIdContainer = ? AND fe.enabled='yes' ORDER BY fe.ord, fe.id"; // "SELECT *, ? AS 'nestedInFieldSet' FROM FormElement AS fe WHERE fe.formId = ? AND fe.deleted = 'no' AND FIND_IN_SET(fe.class, ? ) AND fe.feIdContainer = ? AND fe.enabled='yes' ORDER BY fe.ord, fe.id";
......
<?php
/**
* Created by PhpStorm.
* User: crose
* Date: 1/10/16
* Time: 4:29 PM
*/
namespace qfq;
class FormBuildBootstrap {
}
\ No newline at end of file
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