Currently you get a lot of
warning: Invalid argument supplied for foreach() in .../modules/matrix/matrix.views.inc on line 39.
if you have fields with new lines in their permitted data

Simple patch (you've used this elsewhere in matrix.module)...

cvs diff: Diffing .
Index: matrix.views.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/matrix/Attic/matrix.views.inc,v
retrieving revision 1.1.2.3
diff -r1.1.2.3 matrix.views.inc
36,38c36,38
< $rows_elements = unserialize($field['rows_elements']);
< $cols_elements = unserialize($field['cols_elements']);
< foreach ($rows_elements as $row_index => $row) {
---
> $rows_elements = unserialize(str_replace("\r", "",$field['rows_elements']));
> $cols_elements = unserialize(str_replace("\r", "",$field['cols_elements']));
> foreach ($rows_elements as $row_index => $row) {
cvs diff: Diffing po

Comments

intrafusion’s picture

Status: Patch (to be ported) » Closed (won't fix)