chudomir.delchev
New Member
Hello,
I've got the latest version of Fabrik and installed it.
I had bad problems when trying to insert a new record through a form.
After lot of checks I've found a problem in this:
function getRowId()
...
if ($this->_rowId == ":1") {
$this->_rowId = "-1";
}
I needed rowId to be 0;
When it is int(0), this check is TRUE 1 casted to 0) and I have wrong results.
I've fixed it as:
if (strval($this->_rowId) == ":1") {
Do you think it is right?
Thanks in advance for any help.
Best regards
Chudomir
I've got the latest version of Fabrik and installed it.
I had bad problems when trying to insert a new record through a form.
After lot of checks I've found a problem in this:
function getRowId()
...
if ($this->_rowId == ":1") {
$this->_rowId = "-1";
}
I needed rowId to be 0;
When it is int(0), this check is TRUE 1 casted to 0) and I have wrong results.
I've fixed it as:
if (strval($this->_rowId) == ":1") {
Do you think it is right?
Thanks in advance for any help.
Best regards
Chudomir