Skip to content

Conversation

@zonky2
Copy link
Contributor

@zonky2 zonky2 commented Sep 28, 2016

Hotfix #4 delete empty rows respectively don´t save empty values

@zonky2 zonky2 mentioned this pull request Sep 28, 2016
$time = time();
$params = array();
foreach ($values as $id => $value) {
if (!count(array_filter((array)$value))) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will break the query which is built above.
You must filter before building the query string.

I suggest creating the $sql after determining the parameters.

@zonky2 zonky2 force-pushed the Hotfix_#4_delete_empty_rows branch from 944fda6 to 1a1005f Compare December 8, 2016 22:28
@zonky2 zonky2 force-pushed the Hotfix_#4_delete_empty_rows branch from 1a1005f to 52a1a9d Compare December 8, 2016 22:41
@zonky2
Copy link
Contributor Author

zonky2 commented Dec 13, 2016

test at current MM - works fine!

discordier added a commit that referenced this pull request Dec 15, 2016
Fixes #4 - remove empty rows and allow null values for href..
@discordier discordier modified the milestones: 2.1.0, 2.0.0 Dec 15, 2016
@discordier discordier added the bug label Dec 15, 2016
@discordier
Copy link
Member

Merged in 926fdb5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants