* Fix add block error.

This commit is contained in:
leiyong
2020-09-03 09:46:30 +08:00
parent aed7e1e4ab
commit d2d82ad067
+1 -1
View File
@@ -439,7 +439,7 @@ class block extends control
echo '<div class="form-group">';
echo '<label for="moduleBlock" class="col-sm-3">' . $this->lang->block->lblBlock . '</label>';
echo '<div class="col-sm-7">';
echo html::hidden('type', $program->template);
if(isset($program->template)) echo html::hidden('type', $program->template);
echo html::select('moduleBlock', $blockPairs, ($block and $block->source != '') ? $block->block : '', "class='form-control chosen'");
echo '</div></div>';
}