Commit 4f1be64d12a0f7d8107b01420a9a8bacde69411a
1 parent
9cddcd9e
(#2765) tidied, removed unused case and added javascript validation
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2392 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
6 deletions
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/addUnitBL.php
| @@ -48,13 +48,10 @@ if (checkSession()) { | @@ -48,13 +48,10 @@ if (checkSession()) { | ||
| 48 | $oPatternCustom->setHtml(getPageFail()); | 48 | $oPatternCustom->setHtml(getPageFail()); |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | - } else if (isset($fUnitID)) { | ||
| 52 | - // post back on Unit select from manual edit page | ||
| 53 | - $oPatternCustom->setHtml(getAddPage($fUnitID)); | ||
| 54 | - $main->setFormAction($_SERVER["PHP_SELF"] . "?fForStore=1"); | ||
| 55 | } else { | 51 | } else { |
| 56 | - // if nothing happens...just reload edit page | ||
| 57 | - $oPatternCustom->setHtml(getAddPage(null)); | 52 | + // display add unit page |
| 53 | + $oPatternCustom->setHtml(getAddPage()); | ||
| 54 | + $main->setHasRequiredFields(true); | ||
| 58 | $main->setFormAction($_SERVER["PHP_SELF"]. "?fForStore=1"); | 55 | $main->setFormAction($_SERVER["PHP_SELF"]. "?fForStore=1"); |
| 59 | 56 | ||
| 60 | } | 57 | } |