Hello,
I created several cmis views called alfresco view v05, alfresco view v07, alfresco view v08, alfresco view v09, alfresco view v10, alfresco view v10, alfresco view v12, and alfresco view v13 using the Alfresco test project in Community v4.2.0 (4480) schema 6,020. The cmis path for each view was as follows, Sites/swsdp/documentLibrary/Meeting Notes, Sites/swsdp/wiki Sites/swsdp/documentLibrary, Sites/swsdp/links, Sites/swsdp/wiki, Sites/swsdp/documentLibrary/Presentations, Sites/swsdp/documentLibrary/Agency Files/Contracts, and Sites/swsdp/documentLibrary/Agency Files/Contracts. When the views are rendered in Drupal 7, they are identical. In other words, each view is showing only the files from cmis path Sites/swsdp/documentLibrary/Meeting Notes for each of the blocks. I checked the cmis queries in the Drupal database (table cmis_views) and can see clearly that each query is different and the correct cmis path is recorded for each view. But the render block is wrong. Any ideas as to what the problem may be. Thanks!
Comments
Comment #1
IanNorton commentedI think this is being caused by recent caching changes, I've pushed a fix for it just now, if you pull the latest code it should work as intended.
Thanks for reporting it and sorry you've had issues.
Comment #2
Talon commentedThanks for the quick response!
I removed the old CMIS Views module from my Drupal instance, cleared the database tables, down loaded latest CMIS Views module, and installed the new code. However, the latest release, 7.x-1.x-dev, is dated 2012-Dec-04. So I'm not sure if I do have the latest release. The problem still seems to be there. I created one view without problem. The second view of a different folder was also created, but the actual Drupal block shows the same content of the first view.
Comment #3
IanNorton commentedIt can take drupal.org a while to update the releases - when I checked after your reply last night the latest one wasn't showing, it's now listed correctly and dated Dec 08.
Let me know how you get on.
Comment #4
Talon commentedThank you. I installed that latest code. Success! the render data for each view is now correct. I created 10 different views, and the data for each view was correct. However, I did notice a new error. It doesn't seem to affect the views or the display as far as I can tell. Here is the error:
Notice: Trying to get property of non-object in cmis_views_info() (line 550 of C:\wamp\www\alfresco_v02\sites\all\modules\cmis_views\cmis_views.module).
Thanks again for your help!
Comment #5
IanNorton commentedShould be fixed in the latest release.
Comment #6
Talon commentedThe new code works! Thanks!