mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-28 23:59:57 +09:00
Issue 182 - Update query argument ignored when value is 0.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9314 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cb605c4ac6
commit
23678b790b
2 changed files with 13 additions and 1 deletions
|
|
@ -44,7 +44,8 @@
|
||||||
|
|
||||||
function show(){
|
function show(){
|
||||||
if(!$this->argument) return false;
|
if(!$this->argument) return false;
|
||||||
if(!$this->argument->getValue()) return false;
|
$value = $this->argument->getValue();
|
||||||
|
if(!isset($value)) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,17 @@
|
||||||
$this->_test($xml_file, $argsString, $expected);
|
$this->_test($xml_file, $argsString, $expected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function test_menu_updateMenuItemNode(){
|
||||||
|
$xml_file = _XE_PATH_ . "modules/menu/queries/updateMenuItemNode.xml";
|
||||||
|
$argsString = '$args->parent_srl = 0;
|
||||||
|
$args->menu_srl = 237423;
|
||||||
|
$args->listorder = -8;
|
||||||
|
$args->menu_item_srl = 237431;';
|
||||||
|
$expected = 'UPDATE "xe_menu_item" SET "parent_srl" = 0, "listorder" = -8 WHERE "menu_item_srl" = 237431';
|
||||||
|
$this->_test($xml_file, $argsString, $expected);
|
||||||
|
}
|
||||||
|
|
||||||
// $queryTester->test_admin_deleteActionForward();
|
// $queryTester->test_admin_deleteActionForward();
|
||||||
// $queryTester->test_module_insertModule();
|
// $queryTester->test_module_insertModule();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue