diff -u -r1.37.2.1 SectionForm.inc.php --- classes/manager/form/SectionForm.inc.php 26 Sep 2008 16:14:30 -0000 1.37.2.1 +++ classes/manager/form/SectionForm.inc.php 2 Oct 2008 16:05:03 -0000 @@ -121,15 +121,15 @@ * Initialize form data from current settings. */ function initData() { + $journal = &Request::getJournal(); + $sectionEditorsDao =& DAORegistry::getDAO('SectionEditorsDAO'); if (isset($this->sectionId)) { - $journal = &Request::getJournal(); - $sectionDao = &DAORegistry::getDAO('SectionDAO'); - $section = &$sectionDao->getSection($this->sectionId, $journal->getJournalId()); + $sectionDao =& DAORegistry::getDAO('SectionDAO'); + $section =& $sectionDao->getSection($this->sectionId, $journal->getJournalId()); if ($section == null) { unset($this->sectionId); } else { - $sectionEditorsDao =& DAORegistry::getDAO('SectionEditorsDAO'); $this->_data = array( 'title' => $section->getTitle(null), // Localized 'abbrev' => $section->getAbbrev(null), // Localized @@ -148,6 +148,10 @@ 'unassignedEditors' => $sectionEditorsDao->getEditorsNotInSection($journal->getJournalId(), $this->sectionId) ); } + } else { + $this->_data = array( + 'unassignedEditors' => $sectionEditorsDao->getEditorsNotInSection($journal->getJournalId(), null) + ); } } diff -u -r1.44.2.1 sectionForm.tpl --- templates/manager/sections/sectionForm.tpl 26 Sep 2008 16:14:30 -0000 1.44.2.1 +++ templates/manager/sections/sectionForm.tpl 2 Oct 2008 16:05:33 -0000 @@ -155,7 +155,6 @@ {/if} -{if $sectionId}{* Disable section editor selection if this is a new section *}

{translate key="user.role.sectionEditors"}

@@ -231,8 +230,6 @@ -{/if}{* $sectionId *} -