You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A has_one field presented on the edit page of a model that is of a child type of the type of the page contains an "Attach" button that when clicked crashes the server.
The "Attach" button links to path
/admin/resources/<derived type name>/<model slug>/<field name>/new
The server crashes while rendering that URL.
It should link to
/admin/resources/<super type name>/<model slug>/<field name>/new
which is handled correctly.
For example:
class Animal
has_one: nose
end
class Dog < Animal end
class Avo::Resources::Animal < Avo::BaseResource
def fields
field :nose as: :has_one
end
end
On the edit page for a Dog, on the nose field click Attach a nose
Actual: server crashes
Expected: server doesn't crash
The text was updated successfully, but these errors were encountered:
Describe the bug
A
has_one
field presented on the edit page of a model that is of a child type of the type of the page contains an "Attach" button that when clicked crashes the server.The "Attach" button links to path
/admin/resources/<derived type name>/<model slug>/<field name>/new
The server crashes while rendering that URL.
It should link to
/admin/resources/<super type name>/<model slug>/<field name>/new
which is handled correctly.
For example:
On the edit page for a Dog, on the
nose
field clickAttach a nose
Actual: server crashes
Expected: server doesn't crash
The text was updated successfully, but these errors were encountered: