pods-framework / pods-gravity-forms

Integration with Gravity Forms plugin for WordPress (https://pods.io/gravityforms/)
https://wordpress.org/plugins/pods-gravity-forms/
GNU General Public License v2.0
62 stars 10 forks source link

Cannot force new post to be published #141

Closed josvermeulen closed 4 years ago

josvermeulen commented 4 years ago

Issue Overview

The user can add new posts (CPT) that should be published automatically. In PODS I have set the default status of the new post to 'published'.

Expected Behavior

According to Jim True now in the GF Pods addon this option shopuld also appear but it doesn't. Nothing to choose there.

Current Behavior

In the PODS feed there is nothing like that to select.

Form Upload

``` Upload Gravity Form JSON or Copy and Paste it Here. ```{"0":{"title":"Nieuw bericht maken","description":"","labelPlacement":"top_label","descriptionPlacement":"below","button":{"type":"text","text":"Versturen","imageUrl":""},"fields":[{"type":"post_title","id":3,"label":"Titel bericht","adminLabel":"","isRequired":false,"size":"medium","errorMessage":"","visibility":"visible","inputs":null,"formId":2,"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":"","maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":"","productField":"","fields":"","displayOnly":""},{"type":"post_content","id":4,"label":"Hoofdtekst bericht","adminLabel":"","isRequired":false,"size":"medium","errorMessage":"","visibility":"visible","inputs":null,"formId":2,"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":"","maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":"","productField":"","form_id":"","useRichTextEditor":"","fields":"","displayOnly":""},{"type":"post_image","id":5,"label":"Afbeelding","adminLabel":"","isRequired":false,"size":"medium","errorMessage":"","visibility":"visible","inputs":null,"allowedExtensions":"jpg, jpeg, png, gif","formId":2,"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":"","maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":"","maxFileSize":"","maxFiles":"","multipleFiles":false,"productField":"","displayTitle":"","displayCaption":"","displayDescription":"","fields":"","displayOnly":""},{"type":"fileupload","id":7,"label":"Bestanden of foto's uploaden","adminLabel":"","isRequired":false,"size":"medium","errorMessage":"","visibility":"visible","inputs":null,"formId":2,"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":false,"maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":"","maxFileSize":"","maxFiles":"","multipleFiles":true,"allowedExtensions":"","productField":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"checkboxLabel":"","fields":"","displayOnly":""}],"version":"2.4.19","id":2,"nextFieldId":8,"useCurrentUserAsAuthor":true,"postContentTemplateEnabled":false,"postTitleTemplateEnabled":false,"postTitleTemplate":"","postContentTemplate":"","lastPageButton":null,"pagination":null,"firstPageCssClass":null,"postAuthor":"4","postCategory":"35","postFormat":0,"postStatus":"draft","confirmations":[{"id":"5f0856db45cbc","name":"Standaardbevestiging","isDefault":true,"type":"redirect","message":"","url":"https:\/\/els.zengarden.nl\/wp-admin\/edit.php?post_type=nieuws","pageId":0,"queryString":"","disableAutoformat":false,"conditionalLogic":[]}],"notifications":[{"id":"5f0856db45a94","isActive":true,"to":"{admin_email}","name":"Beheerdersmelding","event":"form_submission","toType":"email","subject":"Nieuwe inzending van {form_title}","message":"{all_fields}"}],"feeds":{"pods-gravity-forms":[{"id":"1","form_id":"2","is_active":"1","feed_order":"0","meta":{"feedName":"Berichtfeed","pod":"nieuws","pod_fields_plaatjes":"7","pod_fields_plaatjes_custom":"","wp_object_fields_post_title":"3","wp_object_fields_post_title_custom":"","wp_object_fields_post_content":"4","wp_object_fields_post_content_custom":"","wp_object_fields_post_excerpt":"","wp_object_fields_post_excerpt_custom":"","wp_object_fields_post_author":"","wp_object_fields_post_author_custom":"","wp_object_fields_post_date":"date_created","wp_object_fields_post_date_custom":"","wp_object_fields_post_name":"","wp_object_fields_post_name_custom":"","wp_object_fields_post_modified":"","wp_object_fields_post_modified_custom":"","wp_object_fields_post_parent":"","wp_object_fields_post_parent_custom":"","wp_object_fields_comments":"","wp_object_fields_comments_custom":"","wp_object_fields__thumbnail_id":"5","wp_object_fields__thumbnail_id_custom":"","custom_fields":[{"key":"plaatjes","value":"7","custom_key":"","custom_value":""}],"update_pod_item":"0","enable_markdown":"0","enable_current_post":"0","enable_prepopulate":"0","delete_entry":"0","feed_condition_conditional_logic":"0","feed_condition_conditional_logic_object":[]},"addon_slug":"pods-gravity-forms","event_type":null}]}},"version":"2.4.19"}

Pods Package Export

{"meta":{"version":"2.7.21","build":1595323531},"pods":{"636":{"id":636,"name":"nieuws","label":"Nieuws","description":"","type":"post_type","storage":"meta","object":"","alias":"","fields":{"plaatjes":{"id":637,"name":"plaatjes","label":"plaatjes","description":"","help":"","class":"","type":"file","weight":0,"pick_object":"custom-simple","pick_val":"","sister_id":"","required":"0","file_format_type":"multi","file_uploader":"attachment","file_attachment_tab":"upload","file_edit_title":"1","file_show_edit_link":"0","file_linked":"0","file_limit":"0","file_restrict_filesize":"10MB","file_type":"images","file_field_template":"rows","file_add_button":"Bestand Toevoegen","file_modal_title":"Voeg een bestand toe","file_modal_add_button":"Bestand Toevoegen","file_wp_gallery_output":"1","file_wp_gallery_link":"file","file_wp_gallery_columns":"4","file_wp_gallery_random_sort":"0","file_wp_gallery_size":"thumbnail","pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"seo_analysis_exclude":"0","seo_sitemap_include":"0","rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","file_allowed_extensions":""}},"show_in_menu":"1","label_singular":"Nieuws","public":"1","show_ui":"1","supports_title":"1","supports_editor":"1","publicly_queryable":"1","exclude_from_search":"0","capability_type":"post","capability_type_custom":"nieuws","capability_type_extra":"1","has_archive":"1","hierarchical":"0","rewrite":"1","rewrite_with_front":"1","rewrite_feeds":"0","rewrite_pages":"1","query_var":"1","can_export":"1","default_status":"publish","supports_author":"1","supports_thumbnail":"1","supports_excerpt":"0","supports_trackbacks":"0","supports_custom_fields":"0","supports_comments":"1","supports_revisions":"0","supports_page_attributes":"0","supports_post_formats":"0","built_in_taxonomies_category":"0","built_in_taxonomies_fl-builder-template-category":"0","built_in_taxonomies_fl-builder-template-type":"0","built_in_taxonomies_link_category":"0","built_in_taxonomies_post_tag":"0","menu_position":"0","show_in_nav_menus":"1","show_in_admin_bar":"1","pfat_enable":"0","pfat_run_outside_loop":"0","pfat_single":"Agenda template","pfat_append_single":"append","pfat_filter_single":"the_content","pfat_append_archive":"append","pfat_filter_archive":"the_content","rest_enable":"0","read_all":"0","write_all":"0"}},"templates":{"Agenda template":{"id":373,"name":"Agenda template","code":"datum: {@datum}
\r\nevenement: {@evenement}
\r\nbegintijd: {@begintijd} uur

","type":"template","slug":"agenda","options":{"_edit_lock":"1594456742:1","_edit_last":"1","admin_only":"","restrict_capability":"","capability_allowed":"","pod_reference":"a:1:{s:3:\"pod\";s:10:\"agendapunt\";}"}},"Agenda archive":{"id":394,"name":"Agenda archive","code":"{@datum}\t{@begintijd}<\/span>\t{@evenement}<\/a><\/span>
\r\n\r\n ","type":"template","slug":"agenda-archive","options":{"_edit_lock":"1594539886:1","_edit_last":"1","admin_only":"","restrict_capability":"","capability_allowed":"","pod_reference":"a:1:{s:3:\"pod\";s:10:\"agendapunt\";}"}}}} ``` Copy and Paste the JSON Export from Pods Migrate: Packages, Export and Paste it Here ```

Related Issues and/or PRs

Todos

  • [ ] Tests
  • [ ] Documentation

WordPress Environment

``` Copy and paste your System Details from **Pods Admin > Settings > Debug Information** in WordPress admin here. ```Warning: file_exists(): open_basedir restriction in effect. File(/opt/alt/php74/var/lib/php/session) is not within the allowed path(s): (/home/zen/:/tmp:/var/tmp:/opt/alt/php72/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php72/lib/php/) in /home/zen/domains/zengarden.nl/public_html/els/wp-content/plugins/pods/ui/admin/settings-tools.php on line 73 Warning: is_writable(): open_basedir restriction in effect. File(/opt/alt/php74/var/lib/php/session) is not within the allowed path(s): (/home/zen/:/tmp:/var/tmp:/opt/alt/php72/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php72/lib/php/) in /home/zen/domains/zengarden.nl/public_html/els/wp-content/plugins/pods/ui/admin/settings-tools.php on line 74 WordPress Version: 5.4.2 PHP Version: 7.4.7 MySQL Version: 10.3.23 Server Software: Apache/2 Your User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36 Session Save Path: /opt/alt/php74/var/lib/php/session Session Save Path Exists: No Session Save Path Writeable: No Session Max Lifetime: 1440 Opcode Cache: Apc: No Memcached: No OPcache: No Redis: No Object Cache: APC: No APCu: No Memcache: No Memcached: No Redis: No WPDB Prefix: wp_ WP Multisite Mode: No WP Memory Limit: 40M Current Memory Usage: 78.586M Current Memory Usage (real): 81.000M Pods Network-Wide Activated: No Pods Install Location: /home/zen/domains/zengarden.nl/public_html/els/wp-content/plugins/pods/ Pods Tableless Mode Activated: No Pods Light Mode Activated: No Currently Active Theme: Beaver Builder Child Theme Currently Active Plugins: Admin Page Spider Pro Pack: 4.31 Autologin Links: 1.11.3 BackupBuddy: 8.5.9.0 Beaver Builder Plugin (Pro Version): 2.3.2.6 Beaver Themer: 1.3.2.1 Classic Editor: 1.5 Extender Pro: 1.3.0 Gravity Forms: 2.4.19 iThemes Security Pro: 6.6.1 MainWP Child: 4.0.7.1 Nav Menu Roles: 1.10.2 Pods - Custom Content Types and Fields: 2.7.21 Pods Beaver Themer Add-On: 1.3.3 Pods Gravity Forms Add-On: 1.4.3 Pods SEO: 2.2 SoulFade: 0.1.0 SoulMagic: 1.0.8 SoulSections2: 1.4.4 SoulType2: 1.0.4 Toolset Access: 2.8.7 Yoast SEO: 14.5 We need YOU in 2020 and beyond Things are changing for Pods and
issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.79. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

josvermeulen commented 4 years ago

👍