mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
MINOR: fixed undefined notice with export csv
This commit is contained in:
parent
72baa7e893
commit
031b91a791
@ -128,8 +128,8 @@ class SubmittedFormReportField extends FormField {
|
||||
|
||||
// Loop over all the names we can use
|
||||
for($i=0;$i<count($csvHeaderNames);$i++) {
|
||||
if(!$row[$i]) $csvData .= '"",'; // If there is no data for this column, output it as blank instead
|
||||
else $csvData .= '"'.$row[$i].'",'; // Otherwise, output the value for this column
|
||||
if(!isset($row[$i]) || !$row[$i]) $csvData .= '"",'; // If there is no data for this column, output it as blank instead
|
||||
else $csvData .= '"'.str_replace('"', '\"', $row[$i]).'",';
|
||||
}
|
||||
// Start a new row for each submission
|
||||
$csvData .= "\n";
|
||||
|
@ -68,12 +68,10 @@
|
||||
<% end_if %>
|
||||
|
||||
<fieldset class="customRules fieldOptionsGroup">
|
||||
<legend>Custom Rules</legend>
|
||||
<legend><% _t('CUSTOMRULES', 'Custom Rules') %></legend>
|
||||
<ul id="{$FieldName}-customRules">
|
||||
<li>
|
||||
<a href="#" class="addCondition" title="<% _t('ADD', 'Add') %>">
|
||||
Add Rule
|
||||
</a>
|
||||
<a href="#" class="addCondition" title="<% _t('ADD', 'Add') %>"><% _t('ADDRULE', 'Add Rule') %></a>
|
||||
</li>
|
||||
<li class="addCustomRule">
|
||||
<select name="{$FieldName}[CustomSettings][ShowOnLoad]">
|
||||
@ -81,7 +79,7 @@
|
||||
<option value="Hide" <% if ShowOnLoad %><% else %>selected="selected"<% end_if %>><% _t('HIDE', 'Hide') %></option>
|
||||
</select>
|
||||
|
||||
<label class="left">Field On Default</label>
|
||||
<label class="left"><% _t('FIELDONDEFAULT', 'Field On Default') %></label>
|
||||
</li>
|
||||
<li class="hidden">
|
||||
<select class="displayOption customRuleField" name="{$FieldName}[CustomRules][Display]">
|
||||
|
Loading…
x
Reference in New Issue
Block a user