mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 21:12:15 +09:00
Update to default value - set it both when value is null or empty string.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8613 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
98a85cdaa9
commit
8b9468a165
3 changed files with 12 additions and 2 deletions
|
|
@ -77,7 +77,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function ensureDefaultValue($default_value){
|
function ensureDefaultValue($default_value){
|
||||||
if(!isset($this->value))
|
if(!isset($this->value) || $this->value == '')
|
||||||
$this->value = $default_value;
|
$this->value = $default_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,16 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function test_communication_addFriendGroup_NullId(){
|
||||||
|
$args->member_srl = 202;
|
||||||
|
$args->title = "Grup";
|
||||||
|
$args->friend_group_srl = trim(null);
|
||||||
|
|
||||||
|
$output = executeQuery("communication.addFriendGroup", $args);
|
||||||
|
$this->assertEquals(0, $output->error, $output->message);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
protected function tearDown() {
|
protected function tearDown() {
|
||||||
$db = &DB::getInstance();
|
$db = &DB::getInstance();
|
||||||
$db->_query("DELETE FROM xe_modules WHERE module_srl = 47374");
|
$db->_query("DELETE FROM xe_modules WHERE module_srl = 47374");
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
, "open_rss" = \'Y\'
|
, "open_rss" = \'Y\'
|
||||||
, "header_text" = \'\'
|
, "header_text" = \'\'
|
||||||
, "footer_text" = \'\'
|
, "footer_text" = \'\'
|
||||||
, "use_mobile" = \'\'
|
, "use_mobile" = \'n\'
|
||||||
WHERE "site_srl" = 0
|
WHERE "site_srl" = 0
|
||||||
AND "module_srl" = 47374';
|
AND "module_srl" = 47374';
|
||||||
$this->_test($xml_file, $argsString, $expected);
|
$this->_test($xml_file, $argsString, $expected);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue