Skip to content

EULA is not displayed on "accept item" page. #17431

@oolivero45

Description

@oolivero45

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ❓ not sure if bugThis issue has not been confirmed as a bug yet

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions