Commit 711dd53d authored by alexpott's avatar alexpott
Browse files

Issue #1965894 by chx: Fixed Misleading variable name in BreakLockForm.

parent 0107faaf
...@@ -83,8 +83,8 @@ protected function getQuestion() { ...@@ -83,8 +83,8 @@ protected function getQuestion() {
*/ */
protected function getDescription() { protected function getDescription() {
$locked = $this->tempStore->getMetadata($this->view->id()); $locked = $this->tempStore->getMetadata($this->view->id());
$account = $this->entityManager->getStorageController('user')->load(array($locked->owner)); $accounts = $this->entityManager->getStorageController('user')->load(array($locked->owner));
return t('By breaking this lock, any unsaved changes made by !user will be lost.', array('!user' => theme('username', array('account' => reset($account))))); return t('By breaking this lock, any unsaved changes made by !user will be lost.', array('!user' => theme('username', array('account' => reset($accounts)))));
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment