Hi,

It's about my post http://drupal.org/node/1226002#comment-5288022

Here is the html that tree view widget returns

<div id="edit-group-audience-und--2" class="entity-reference-tree">
	<ul class="entity-reference-tree-level">
		<li><div class="no-entity-reference-tree-button"></div>
			<div class="form-item form-type-checkbox form-item-group-audience-und-0-2-2">
			 	<input type="checkbox" id="edit-group-audience-und-0-2-2" name="group_audience[und][0][2][2]" value="2" checked="checked" class="form-checkbox">  
				<label class="option" for="edit-group-audience-und-0-2-2">Site internet de la coordination </label>
			</div>
		</li>
		<li>
			<div class="no-entity-reference-tree-button"></div>
			<div class="form-item form-type-checkbox form-item-group-audience-und-0-17-17">
	 			<input type="checkbox" id="edit-group-audience-und-0-17-17" name="group_audience[und][0][17][17]" value="17" class="form-checkbox">  
				<label class="option" for="edit-group-audience-und-0-17-17">ACG </label>
			</div>
		</li>
		<li>
			<div class="no-entity-reference-tree-button"></div>
			<div class="form-item form-type-checkbox form-item-group-audience-und-0-20-20">
	 			<input type="checkbox" id="edit-group-audience-und-0-20-20" name="group_audience[und][0][20][20]" value="20" class="form-checkbox">  
				<label class="option" for="edit-group-audience-und-0-20-20">Coordination 30 </label>
			</div>
		</li>
	</ul>
</div>

And here is the html that audience group returns

<select class="group-audience form-select" multiple="multiple" name="group_audience[und][]" id="edit-group-audience-und--2">
	<optgroup label="Mes groupes">
		<option value="2" selected="selected">Site internet de la coordination</option>
		<option value="8">reunion 1</option>
		<option value="9">Tache test</option>
		<option value="10">reunion 2</option>
		<option value="12">Reunion graphisme 3</option>
	</optgroup>
	<optgroup label="Autres groupes">
		<option value="4">Architecture</option>
		<option value="5">Evenement 1</option>
		<option value="6">ACG</option>
		<option value="7">Coordination 30</option>
		<option value="11">comité des membres</option>
	</optgroup>
</select>

And I attach also a png of my table og

Compare the value between audience group widget and tree view widget
for exemple ACG :
value="17" with tree view ( in the .png it's row etid)
value="6" with audience group ( in the .png it's row gid)

Is it normal ?

I think it's works for you on the screencast because in a fresh install gid and etid are equal...

Jo

CommentFileSizeAuthor
bdd.png52.41 KBjohaziel

Comments

william.lai’s picture

Hi, i found the issue is relate to entity reference tree module and update in following link.
http://drupal.org/node/1370236/

please check if it is the same case as you.

thanks,

lahode’s picture

Status: Needs review » Fixed

Hi Johaziel,

Thanks for your comment, you're absolutely right. This was caused by Entity Reference Tree module. I updated both module and should work fine.

Please let me know.

Cheers

Status: Fixed » Closed (fixed)

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