Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line 183 of the GridFieldSortableRows.php is producing problems #24

Closed
ghost opened this issue Jan 26, 2013 · 4 comments
Closed

Line 183 of the GridFieldSortableRows.php is producing problems #24

ghost opened this issue Jan 26, 2013 · 4 comments
Labels

Comments

@ghost
Copy link

ghost commented Jan 26, 2013

Hi!

The line 183 of the GridFieldSortableRows.php is producing problems:

DB::query('UPDATE "' . $table
. '" SET "' . $sortColumn . '" = ' . $sortColumn = ($max + $i)
. ' WHERE "ID" = '. $obj->ID);

I think it should be:

DB::query('UPDATE "' . $table
. '" SET "' . $sortColumn . '" = ' .  ($max + $i)
. ' WHERE "ID" = '. $obj->ID);

Regards,
Jose A.

@UndefinedOffset
Copy link
Owner

Jose,
I'm not seeing a difference in the two snippets? I'll have a closer look tomorrow night. See if I can see what's up then.

@ghost
Copy link
Author

ghost commented Jan 27, 2013

The difference is that you put: . $sortColumn = ($max + $i)
when it should be: . ($max + $i)

Regards,
Jose A.

@UndefinedOffset
Copy link
Owner

Fixed in master thanks to pull request 25

@UndefinedOffset
Copy link
Owner

Thanks Jose, it was like 12:30am when i was looking lol, brain was kinda turned off lol. Like I said earlier its fixed thanks to pull #25 curtsy of flxbot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant