Skip to content

Fix the "Visible to everyone" option#912

Merged
ride90 merged 1 commit intobooktype:masterfrom
soroushj:fix-visible-to-everyone-option
Oct 9, 2019
Merged

Fix the "Visible to everyone" option#912
ride90 merged 1 commit intobooktype:masterfrom
soroushj:fix-visible-to-everyone-option

Conversation

@soroushj
Copy link
Copy Markdown
Contributor

@soroushj soroushj commented Jul 2, 2019

The selected value was ignored. Newly-created books were always visible to everyone.

The reason is that the value of data.get('visible_to_everyone', None) can be either None or 'on'. So it should be compared with 'on', not 'off'.

The selected value was ignored, always visible to everyone.
@ride90 ride90 merged commit a1fe45e into booktype:master Oct 9, 2019
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