Closed missmatsuko closed 5 years ago
Hi, I occured same issue when new entry create.
Recent Craft 3.2+ has changed DOM structure.
Create a new entry
page no more has input[name="action"]
and input#apply-btn.btn.submit
.
So, I tried to add following code in https://github.com/spicywebau/craft-fieldlabels/blob/master/src/resources/js/FieldLabels.js#L353:
var action = $action.val();
// add 3 lines.
if (typeof action === 'undefined' && $form.find('input[name="entryId"]').length) {
action = 'entry-revisions/save-draft';
}
if(action)
After that, It looks fine. Thanks.
You're right, the problem seems to be only when I'm creating a new entry. After I save the entry, the relabeled ones show.
On Sun., Aug. 11, 2019, 2:11 a.m. Toru Kokubun, notifications@github.com wrote:
Hi, I occured same issue when new entry create.
Recent Craft 3.2+ has changed DOM structure. Create a new entry page no more has input[name="action"] and input#apply-btn.btn.submit.
So, I tried to add following code in https://github.com/spicywebau/craft-fieldlabels/blob/master/src/resources/js/FieldLabels.js#L353 :
var action = $action.val(); // add 3 lines.if (typeof action === 'undefined' && $form.find('input[name="entryId"]').length) { action = 'entry-revisions/save-draft'; } if(action)
After that, It looks fine. Thanks.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/spicywebau/craft-fieldlabels/issues/42?email_source=notifications&email_token=AEIOIJTGLFJV32LWIICSKELQD7JUFA5CNFSM4IKXFBS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4A5A5A#issuecomment-520212596, or mute the thread https://github.com/notifications/unsubscribe-auth/AEIOIJRXIBZZCT3KAUBVN6DQD7JUFANCNFSM4IKXFBSQ .
That's right, it shows the default labels on new entries. Saved re-labled entries work fine. Will there be a fix for this at some point?
Hi @missmatsuko, sorry for not getting back to you about this issue, we've been really busy with multiple projects + neo and haven't had a chance to look into it.
I'll have a look into this today.
Description
I could've sworn this plugin was working for me yesterday, but today the labels aren't being relabelled. I tried resetting my code and plugins, but it didn't make a difference.
I can still set the label and instructions for the field, and it seems to save changes properly, but the old labels still show when I go to edit an entry. The field in question is Craft's built-in Plaintext field, and the entry only has Plaintext and Redactor fields.
Added list of the active plugins I have right now. I thought it might be related to
mmikkel/cp-field-inspect
because that adds a gear to the right of a label, but disabling and uninstalling it didn't help.Other information