RogEE / Freeform-Grid

[ALPHA] — An add-on for ExpressionEngine 2.x — Provides a Grid fieldtype for use with Freeform & Freeform Pro
1 stars 3 forks source link

Doesn't work with ExpressionEngine 2.8 #6

Open davidbarratt opened 10 years ago

davidbarratt commented 10 years ago

This plugin doesn't seem to work correctly with ExpressionEngine 2.8+

screen shot 2014-08-12 at 12 46 11 pm

WScott84 commented 9 years ago

Replace in freeform_grid/views/base.js - Lines 89-94

String.prototype.format = function() { var args = arguments; return this.replace(/{(<?php if (REQ != 'CP') echo "\";?>\d+)}/g, function(match, number) { return typeof args[number] != 'undefined' ? args[number] : match; }); };

With this...

String.prototype.format = function() { var args = arguments; return this.replace(/{(\d+)}/g, function(match, number) { return typeof args[number] != 'undefined' ? args[number] : match; }); };

WScott84 commented 9 years ago

Maybe the module developer can provide insight into why <?php if (REQ != 'CP') echo "\";?> was needed at one point?