deleted a block (autonav )

Permalink
HI there, by mistake we deleted a block (autonav ) from "Installed Block Types" that means we deleted this block form database?¿ How can we restore this block?

sergiolm
 
Steevb replied on at Permalink Reply 1 Attachment
Steevb
i presume you’ve still got the ‘autonav’ folder under the ‘concrete’ > ‘blocks’ folder?

With phpMyAdmin or similar go to Database > ‘BlockTypes’ and click ‘insert’ on that row. Then try filling details and saving using the ‘Go’ button.

See attached.
sergiolm replied on at Permalink Reply
sergiolm
Thanks a lot, I will try to do it ;)
sergiolm replied on at Permalink Reply
sergiolm
HiSteevb,
I have run the query but it gives an error "Duplicate primary key 11”

For if it helps, in that table the row that has that primary key contains:

btID 11
btHandle desktop_latest_form
btName Latest Form
btDescription Shows the latest form submission.

Any ideas?¿

Thank you very much for your help!

Sergio.
Steevb replied on at Permalink Best Answer Reply
Steevb
Try using a different number that is not in the list.
sergiolm replied on at Permalink Reply
sergiolm
Yeah!!! It´s works!! Thanks a lot ;)

Cheers!!