Skip to content

Commit

Permalink
Simplify the way "edit list" title is determined. (#2418)
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz authored May 11, 2022
1 parent 495c4ca commit 56cf186
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/bootstrap3/templates/myresearch/editlist.phtml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
// Set up page title:
$pageTitle = empty($this->list->id) ? 'Create a List' : "edit_list";
$pageTitle = $this->newList ? 'Create a List' : "edit_list";
$this->headTitle($this->translate($pageTitle));

// Set up breadcrumbs:
Expand All @@ -19,7 +19,7 @@

<h2><?=$this->transEsc($pageTitle); ?></h2>

<form class="form-edit-list" method="post" name="<?=empty($this->list->id) ? 'newList' : 'editListForm'?>">
<form class="form-edit-list" method="post" name="<?=$this->newList ? 'newList' : 'editListForm'?>">
<input type="hidden" name="id" value="<?=empty($this->list->id) ? 'NEW' : $this->escapeHtmlAttr($this->list->id) ?>"/>
<div class="form-group">
<label class="control-label" for="list_title"><?=$this->transEsc('List'); ?>:</label>
Expand Down

0 comments on commit 56cf186

Please sign in to comment.