Skip to content

Commit

Permalink
Clear account cache when deleting or adding/editing a library card.
Browse files Browse the repository at this point in the history
  • Loading branch information
EreMaijala authored and demiankatz committed Dec 4, 2020
1 parent e91c4ef commit a0f85da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion themes/bootstrap3/templates/librarycards/editcard.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

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

<form class="form-edit-card" method="post" name="<?=empty($this->card->id) ? 'newCardForm' : 'editCardForm'?>" autocomplete="off">
<form class="form-edit-card" method="post" name="<?=empty($this->card->id) ? 'newCardForm' : 'editCardForm'?>" autocomplete="off" data-clear-account-cache>
<input type="hidden" name="id" value="<?=empty($this->card->id) ? 'NEW' : $this->card->id ?>"/>
<div class="form-group">
<label class="control-label" for="card_name"><?=$this->transEsc('Library Card Name'); ?>:</label>
Expand Down
2 changes: 1 addition & 1 deletion themes/bootstrap3/templates/librarycards/home.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<i class="fa fa-trash-o" aria-hidden="true"></i> <?=$this->transEsc('Delete')?>
</a>
<ul class="dropdown-menu">
<li><a href="<?=$this->url('librarycards-deletecard') ?>?cardID=<?=urlencode($record['id'])?>&amp;confirm=1"><?=$this->transEsc('confirm_dialog_yes') ?></a></li>
<li><a href="<?=$this->url('librarycards-deletecard') ?>?cardID=<?=urlencode($record['id'])?>&amp;confirm=1" data-clear-account-cache><?=$this->transEsc('confirm_dialog_yes') ?></a></li>
<li><a href="#"><?=$this->transEsc('confirm_dialog_no')?></a></li>
</ul>
</div>
Expand Down

0 comments on commit a0f85da

Please sign in to comment.