Skip to content

Issue #1137 by Inlead: Disallow renewal of ILL loans.#11

Open
guddo wants to merge 2 commits intoding2:masterfrom
inleadmedia:DDBCMS-3
Open

Issue #1137 by Inlead: Disallow renewal of ILL loans.#11
guddo wants to merge 2 commits intoding2:masterfrom
inleadmedia:DDBCMS-3

Conversation

@guddo
Copy link
Copy Markdown
Member

@guddo guddo commented Sep 4, 2015

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change this to '#disabled' => TRUE,

The equality check is unneeded as $reservation->reservation_type is already checked in the switch statement and this is in the DING_RESERVATION_INTERLIBRARY_LOANS case. Comparing against a string value is also dangerous as the rest of the code uses predefined constants.

@kasperg
Copy link
Copy Markdown
Member

kasperg commented Nov 5, 2015

@guddo / @AnatolyMuntean I have reviewed this.

Even though this is a tiny change it is worth simplifying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants