Summary:
Apply button is shown for non-existing page and creates new pages
Detailed Description:
When creating a new page and choosing a template the apply button is shown. When
the apply button is pressed a page is created which is good. But when I press
the apply button again a new page is created. This will continue until i press
the submit button or reopen the created page.
Steps:
- create new page
- Change template
- - Page is reloaded with new template
- Apply button is shown right away
- I press on apply and a page is created
I made changes to the following code to solve this:
\modules\CMSContentManager\templates\admin_editcontent.tpl Lines 217 & 220
change the if statemant from
$content_id != ''
to
$content_id >= 1