Not sure what scenario causes this to happen, but a table I have contains no joins, but there is an empty join array() in the DataTable object. As a result the view path to see the data and relate terms, etc. is incorrect. It gets rendered as admin/content/data/view//feeds_data_mytable. Patch attached checks to see if that join array is empty.

CommentFileSizeAuthor
#1 data_ui_get_default_path-960036-1.patch579 bytesfebbraro

Comments

febbraro’s picture

StatusFileSize
new579 bytes
alex_b’s picture

Status: Active » Reviewed & tested by the community

Good catch.

joachim’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 6.x.

- #960036 by febbraro: Fixed view paths when join array is empty.

joachim’s picture

Status: Fixed » Patch (to be ported)

... and may need a forward-port to D7.

joachim’s picture

Version: 6.x-1.0-alpha14 » 7.x-1.x-dev
joachim’s picture

Status: Patch (to be ported) » Fixed

Applies with fuzz to 7.x and seems to make sense there too.

(Though do we need is_array()? When might this not be an array?)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.