I tried to use Availability module as one of the commerce product field but when I edit it using inline entity form it doesn't update the calendar. I also notice the same behavior on editable_views module.

Please see screenshot attached

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drupal_simply_amazing’s picture

Issue summary: View changes
fietserwin’s picture

I guess it has to do with the special way I have to intercept saving the field. I will try to look into the inline entity form combination but I don't currently have much time to spend on this module.

Note: there was another report on editable fields: #2348625: Availability Calendar Not working on editablefields with a workaround.

drupal_simply_amazing’s picture

@fietserwin I hope someone have there own solution on this issue.

Regarding on editable field I'm the one who reported it with solution :D but on my case now we need to use the editable_views. So I cant use my previous solution.

drupal_simply_amazing’s picture

It seems when you clicked the save button on add/edit node without saving the inline entity the value of the dates getting saved.

I also solved the editable_views issue. First you need to download the editablefields_as_link module then add the availability calendar fields (fields without 'editable' label) to your views then select editable link as you formatter. You may got an error array if you didn't use the editable link formatter cause the views page format is already editable. On line 12 disable or make another condition on editablefields.js located on editable_fields module to prevent auto submit when you change the availability state. Lastly css the submit button to display block it is hidden by default.

fietserwin’s picture

Status: Active » Closed (won't fix)

I'm not going to implement this anymore. Patches are welcome for any integration with any other Drupal module, but I guess we are too far in the life cycle of D7 now, to add this other then based on actual need in an actual project.