{"action":"created","issue":{"url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/1121","labels_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/1121/labels{/name}","comments_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/1121/comments","events_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/1121/events","html_url":"https://github.com/ryancramerdesign/ProcessWire/issues/1121","id":70129621,"number":1121,"title":"PageTable: Required fields are not checked","user":{"login":"FlipZoomMedia","id":708183,"avatar_url":"https://avatars.githubusercontent.com/u/708183?v=3","gravatar_id":"","url":"https://api.github.com/users/FlipZoomMedia","html_url":"https://github.com/FlipZoomMedia","followers_url":"https://api.github.com/users/FlipZoomMedia/followers","following_url":"https://api.github.com/users/FlipZoomMedia/following{/other_user}","gists_url":"https://api.github.com/users/FlipZoomMedia/gists{/gist_id}","starred_url":"https://api.github.com/users/FlipZoomMedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlipZoomMedia/subscriptions","organizations_url":"https://api.github.com/users/FlipZoomMedia/orgs","repos_url":"https://api.github.com/users/FlipZoomMedia/repos","events_url":"https://api.github.com/users/FlipZoomMedia/events{/privacy}","received_events_url":"https://api.github.com/users/FlipZoomMedia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-22T13:42:51Z","updated_at":"2015-04-24T13:00:43Z","closed_at":null,"body":"I have defined in a template all fields as \"required\", but if I in the modal window and click \"publish\", the modal window will be closed. It is not checked whether required fields have been filled."},"comment":{"url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/comments/95926027","html_url":"https://github.com/ryancramerdesign/ProcessWire/issues/1121#issuecomment-95926027","issue_url":"https://api.github.com/repos/ryancramerdesign/ProcessWire/issues/1121","id":95926027,"user":{"login":"ryancramerdesign","id":328272,"avatar_url":"https://avatars.githubusercontent.com/u/328272?v=3","gravatar_id":"","url":"https://api.github.com/users/ryancramerdesign","html_url":"https://github.com/ryancramerdesign","followers_url":"https://api.github.com/users/ryancramerdesign/followers","following_url":"https://api.github.com/users/ryancramerdesign/following{/other_user}","gists_url":"https://api.github.com/users/ryancramerdesign/gists{/gist_id}","starred_url":"https://api.github.com/users/ryancramerdesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryancramerdesign/subscriptions","organizations_url":"https://api.github.com/users/ryancramerdesign/orgs","repos_url":"https://api.github.com/users/ryancramerdesign/repos","events_url":"https://api.github.com/users/ryancramerdesign/events{/privacy}","received_events_url":"https://api.github.com/users/ryancramerdesign/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T13:00:43Z","updated_at":"2015-04-24T13:00:43Z","body":"If the page was unpublished, then it shouldn't let you publish it without filling in the fields. However, the window will still close, but the page should remain unpublished if the requirements weren't met. Without looking at the code directly, I recall that the buttons are basically close window actions, so the saving happens at the same time the window is already closing. Though I can revisit this later in the future to make it wait around for a potential error response before closing the window (which is what we do in FormBuilder's modal edit). "}}