Problem/Motivation

Problem 1: The default value for the "Book" field equals "None" which doesn't make any sense and after creating a new book with the default value "NONE" this book will not be displayed anywhere, as it will not adjust to the existing one and it will not be a new PARENT book.

Problem 2: If the book have a group then "Book inline" field contain the books list that are in other groups, should be only books existed in the current group.

Problem 3: Group member gets a fatal error when click on "Add Book" button inside a flexible group.

Steps to reproduce

Problem 1:

  • Go to the book creation page /node/add/book
  • The default value for the Book field should be "- Create a new book -"

Problem 2:

  • Create a flexible group and make sure books are enabled in it
  • Create at least one book in the page - /node/add/book
  • Go to the page /group/{gid}/books and press the button Create Book
  • In the field "Book inline" you should not see any options with books
  • Again, go to the page /group/{gid}/books and press the button Create Book
  • In the field "Book inline" you should should see only a book created above (added to the current group)

Problem 3:

  • Add appropriate permission for verified users

Proposed resolution

  1. Make a default value "- Create a new book -" instead on "NONE".
  2. Update "Book Outline" field in node form "on the fly" if user change "Group" field value.
  3. Fix group permissions for group member to allow create Books in Groups.

Comments

rolki created an issue. See original summary.

rolki’s picture

Issue summary: View changes
Status: Active » Needs review
vnech’s picture

Title: The default value for the "Book" field equals "None" which doesn't make any sense » The default value for the "Book" field equals "None" which doesn't make any sense; Make "Book inline" list contain only books existed in the selected group
Issue summary: View changes
vnech’s picture

Issue summary: View changes
ribel’s picture

Title: The default value for the "Book" field equals "None" which doesn't make any sense; Make "Book inline" list contain only books existed in the selected group » Improve Books in Groups functionality
Version: 11.4.x-dev » 11.5.x-dev
Issue summary: View changes
ribel’s picture

Status: Needs review » Reviewed & tested by the community

PR was tested and reviewed and ready to be merged.

ribel’s picture

damienmckenna’s picture

Issue summary: View changes
tbsiqueira’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.