spicywebau / craft-fieldlabels

Override Craft CMS field labels and instructions in the field layout designer
MIT License
123 stars 9 forks source link

Cannot read property 'prototype' of undefined #55

Closed FrancisMawn closed 4 years ago

FrancisMawn commented 4 years ago

Description

A javascript exception is thrown on the admin dashboard page when you don't have the Quick Post widget enabled.

The error is located at line 22 in src/resources/js/Widgets.js var QuickPostWidget_save = Craft.QuickPostWidget.prototype.save;

Steps to reproduce

  1. Visit the admin dashboard
  2. Make sure you don't have the Quick Post widget activated on the page
  3. Open devtools console, see exception

Other information

ttempleton commented 4 years ago

Thanks for reporting this @FrancisMawn, it's now been fixed in Field Labels 1.2.4.