mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 23:03:25 +09:00
Fix undefined variables in several module config templates
This commit is contained in:
parent
d54eb4f3d5
commit
8176bdb845
12 changed files with 38 additions and 31 deletions
|
|
@ -170,7 +170,7 @@ class DocumentView extends Document
|
|||
{
|
||||
$document_config = ModuleModel::getModulePartConfig('document', $current_module_srl);
|
||||
}
|
||||
if(!$document_config)
|
||||
if(!isset($document_config))
|
||||
{
|
||||
$document_config = new stdClass();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<input type="hidden" name="module" value="document" />
|
||||
<input type="hidden" name="act" value="procDocumentInsertModuleConfig" />
|
||||
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
|
||||
<input type="hidden" name="target_module_srl" value="{$module_info->module_srl?$module_info->module_srl:$module_srls}" />
|
||||
<input type="hidden" name="target_module_srl" value="{!empty($module_info->module_srl) ? $module_info->module_srl : $module_srls}" />
|
||||
|
||||
<div class="x_control-group">
|
||||
<label for="use_history" class="x_control-label">{$lang->history}</label>
|
||||
|
|
|
|||
|
|
@ -2,14 +2,14 @@
|
|||
<!--%import("filter/insert_extra_var.xml")-->
|
||||
<!--%import("filter/delete_extra_var.xml")-->
|
||||
|
||||
<block cond="$selected_var_idx && $extra_keys[$selected_var_idx]">
|
||||
<block cond="isset($selected_var_idx) && isset($extra_keys[$selected_var_idx])">
|
||||
{@ $selected_var = $extra_keys[$selected_var_idx] }
|
||||
</block>
|
||||
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/document/tpl/extra_keys/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
|
||||
<!--@if($type == 'insertExtraForm' || $selected_var_idx)-->
|
||||
<!--@if((isset($type) && $type == 'insertExtraForm') || isset($selected_var_idx))-->
|
||||
<section class="section">
|
||||
<h1>{$lang->extra_vars}</h1>
|
||||
<form ruleset="insertExtraVar" action="./" method="post" class="x_form-horizontal">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue