Assorted licenses UI fixes while testing.

* Rename licenses route checkin parameter to clarify it's purpose and
fix incorrect route in users view page.
* Checkin note can be nullable for checking in a license.
* License Seat view was only showing 20 license seats due to faulty
transformer logic.
This commit is contained in:
Daniel Meltzer
2020-05-12 14:36:14 -04:00
parent 1321304720
commit a6f90cb3fc
5 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -21,12 +21,12 @@ class CheckoutableCheckedIn
*
* @return void
*/
public function __construct($checkoutable, $checkedOutTo, User $checkedInBy, $note, $action_date)
public function __construct($checkoutable, $checkedOutTo, User $checkedInBy, $note, $action_date = null)
{
$this->checkoutable = $checkoutable;
$this->checkedOutTo = $checkedOutTo;
$this->checkedInBy = $checkedInBy;
$this->note = $note;
$this->action_date = $action_date;
$this->action_date = $action_date ?? date('Y-m-d');
}
}