Skip to content

Commit

Permalink
Indicate WP subject as non-writable when generated
Browse files Browse the repository at this point in the history
Automatic subject generation should prevent users from
editing the subject directly. Instead it can only be updated
automatically, when other fields change in that case.
  • Loading branch information
NobodysNightmare committed Jan 7, 2025
1 parent 58eae05 commit f7f8f06
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def available_custom_fields

def writable?(property)
property = property.to_s
return false if property == "subject" && type&.replacement_pattern_defined_for?(:subject)

# Special case for milestones + date property
property = "start_date" if property == "date" && milestone?
Expand Down

0 comments on commit f7f8f06

Please sign in to comment.