Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The check for $node->op on line 124 doesn't account for translations
if ($node->op == 'Save' && $node->published) {
$node->published = strtotime($node->published);
}
On my site the $node->op == 'Indsend' - so an easy fix could be to check for $node->op == t('Save')
But I maybe a better solution could be to check for $node->form_id == $node->type.'_node_form' instead
Comment | File | Size | Author |
---|---|---|---|
#1 | 877702-2.patch | 985 bytes | naxoc |
Comments
Comment #1
naxoc CreditAttribution: naxoc commentedHere is a patch that just puts the 'Save' in a t() function.
Comment #2
naxoc CreditAttribution: naxoc commentedSetting status
Comment #3
liquidcms CreditAttribution: liquidcms commentedyea, this is wrong way to do this.. no need to check where the submit is coming from; simply need to check if the string is an int already... committing to dev ver.
Comment #4
liquidcms CreditAttribution: liquidcms commented