* fix cannot submit form without parentprogram data on create one.

This commit is contained in:
Catouse
2020-08-27 09:02:38 +08:00
parent 3712145ff9
commit b10f3686a8
+1 -1
View File
@@ -143,7 +143,7 @@
<?php echo html::backButton();?>
<?php
echo html::hidden('template', $template);
echo html::hidden('parent', $parentProgram->id);
echo html::hidden('parent', $parentProgram ? $parentProgram->id : '0');
?>
</td>
</tr>