When a user is checking out an item, it is expected that a copy of the category's EULA (or global EULA if the category is set to use that) which they are agreeing to would be displayed on the acceptance page. However, this is not the case.
This appears to be due to an error introduced on lines 995 & 997 of Models/Asset.php:
|
if (($this->model->category->eula_text) && ($this->model->category->use_default_eula === 0)) { |
|
return Helper::parseEscapedMarkedown($this->model->category->eula_text); |
|
} elseif ($this->model->category->use_default_eula === 1) { |
This comparison using a triple equal rather than a double causes the EULA to not be shown. Changing this back to a double equal causes the EULA to appear and behave as expected.
I have been able to reproduce and fix the issue on my own installation, so I will submit a PR shortly with a fix.
When a user is checking out an item, it is expected that a copy of the category's EULA (or global EULA if the category is set to use that) which they are agreeing to would be displayed on the acceptance page. However, this is not the case.
This appears to be due to an error introduced on lines 995 & 997 of Models/Asset.php:
snipe-it/app/Models/Asset.php
Lines 995 to 997 in 1eae5d1
This comparison using a triple equal rather than a double causes the EULA to not be shown. Changing this back to a double equal causes the EULA to appear and behave as expected.
I have been able to reproduce and fix the issue on my own installation, so I will submit a PR shortly with a fix.