We are moving to Git Issues for bug tracking in future releases. During transition, content will be in both tools. If you'd like to file a new bug, please create an issue.

View | Details | Raw Unified | Return to bug 3790 | Differences between
and this patch

Collapse All | Expand All

(-)classes/manager/form/SectionForm.inc.php (-4 / +8 lines)
 Lines 121-135    Link Here 
121
	 * Initialize form data from current settings.
121
	 * Initialize form data from current settings.
122
	 */
122
	 */
123
	function initData() {
123
	function initData() {
124
		$journal = &Request::getJournal();
125
		$sectionEditorsDao =& DAORegistry::getDAO('SectionEditorsDAO');
124
		if (isset($this->sectionId)) {
126
		if (isset($this->sectionId)) {
125
			$journal = &Request::getJournal();
127
			$sectionDao =& DAORegistry::getDAO('SectionDAO');
126
			$sectionDao = &DAORegistry::getDAO('SectionDAO');
128
			$section =& $sectionDao->getSection($this->sectionId, $journal->getJournalId());
127
			$section = &$sectionDao->getSection($this->sectionId, $journal->getJournalId());
128
129
129
			if ($section == null) {
130
			if ($section == null) {
130
				unset($this->sectionId);
131
				unset($this->sectionId);
131
			} else {
132
			} else {
132
				$sectionEditorsDao =& DAORegistry::getDAO('SectionEditorsDAO');
133
				$this->_data = array(
133
				$this->_data = array(
134
					'title' => $section->getTitle(null), // Localized
134
					'title' => $section->getTitle(null), // Localized
135
					'abbrev' => $section->getAbbrev(null), // Localized
135
					'abbrev' => $section->getAbbrev(null), // Localized
 Lines 148-153    Link Here 
148
					'unassignedEditors' => $sectionEditorsDao->getEditorsNotInSection($journal->getJournalId(), $this->sectionId)
148
					'unassignedEditors' => $sectionEditorsDao->getEditorsNotInSection($journal->getJournalId(), $this->sectionId)
149
				);
149
				);
150
			}
150
			}
151
		} else {
152
			$this->_data = array(
153
				'unassignedEditors' => $sectionEditorsDao->getEditorsNotInSection($journal->getJournalId(), null)
154
			);
151
		}
155
		}
152
	}
156
	}
153
157
(-)templates/manager/sections/sectionForm.tpl (-3 lines)
 Lines 155-161    Link Here 
155
{/if}
155
{/if}
156
</table>
156
</table>
157
157
158
{if $sectionId}{* Disable section editor selection if this is a new section *}
159
<div class="separator"></div>
158
<div class="separator"></div>
160
159
161
<h3>{translate key="user.role.sectionEditors"}</h3>
160
<h3>{translate key="user.role.sectionEditors"}</h3>
 Lines 231-238    Link Here 
231
	</tr>
230
	</tr>
232
</table>
231
</table>
233
232
234
{/if}{* $sectionId *}
235
236
<p><input type="submit" value="{translate key="common.save"}" class="button defaultButton" /> <input type="button" value="{translate key="common.cancel"}" class="button" onclick="document.location.href='{url op="sections" escape=false}'" /></p>
233
<p><input type="submit" value="{translate key="common.save"}" class="button defaultButton" /> <input type="button" value="{translate key="common.cancel"}" class="button" onclick="document.location.href='{url op="sections" escape=false}'" /></p>
237
234
238
</form>
235
</form>

Return to bug 3790