mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
issue 332, fixed a bug related extra variable ordering
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9492 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e3c8b1e81c
commit
f0a9bfa02f
2 changed files with 10 additions and 3 deletions
|
|
@ -453,6 +453,14 @@
|
|||
if($type == 'up') $new_idx = $var_idx-1;
|
||||
else $new_idx = $var_idx+1;
|
||||
if($new_idx<1) return new Object(-1,'msg_invalid_request');
|
||||
|
||||
$args->module_srl = $module_srl;
|
||||
$args->var_idx = $new_idx;
|
||||
$output = executeQuery('document.getDocumentExtraKeys', $args);
|
||||
if (!$output->toBool()) return $output;
|
||||
if (!$output->data) return new Object(-1, 'msg_invalid_request');
|
||||
unset($args);
|
||||
|
||||
// update immediately if there is no idx to change
|
||||
if(!$extra_keys[$new_idx]) {
|
||||
$args->module_srl = $module_srl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue