# Bug OP-6204 - Custom Action. Exception on OP Edge.   "undefined method `iso8601' for "%CURRENT_DATE%":String"

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-6204

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 10.0.0 |
| Observed in versions |  |
| Sprint | 10.0.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### **Environment**:

Your OpenProject Version: \<VERSION\> / Cloud Edition: openproject-edge. See sentry issue below.

### **Logs**

<https://sentry.openproject.com/sentry/saas-openproject-edge/issues/944/?environment=bim-trials1>

``` text
NoMethodError:
 undefined method `iso8601' for "%CURRENT_DATE%":String
  app/views/custom_actions/_form.html.erb:64:in `block in
 _app_views_custom_actions__form_html_erb___3858813084428951712_47017008053560'
    <%= tag 'custom-date-action-admin', data: { 'field-value':
 action.values.first&.iso8601, 'field-name': input_name } %>
  app/views/custom_actions/_form.html.erb:43:in `each'
    <% @custom_action.all_actions.each do |action| %>
  app/views/custom_actions/_form.html.erb:43:in
 `_app_views_custom_actions__form_html_erb___3858813084428951712_47017008053560'
    <% @custom_action.all_actions.each do |action| %>
  app/views/custom_actions/edit.html.erb:38:in `block in
 _app_views_custom_actions_edit_html_erb___1601384057737895511_47017008144140'
    <%= render partial: 'form', locals: { f: f } %>
  app/helpers/application_helper.rb:353:in `labelled_tabular_form_for'
    form_for(record, options, &block)
...
(189 additional frame(s) were not displayed)

ActionView::Template::Error: undefined method `iso8601' for
 "%CURRENT_DATE%":String
```

### **Steps to reproduce:**

1.  Go administration of Action buttons
2.  In the list of action buttons click *Edit* or *Delete* of an Action button.

### **Actual Behavior**

Describe the behavior you're seeing.

### **Expected Behavior**

Describe the expected behavior.
