Virtual sites, "User that can edit content:" list wrong...

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
5/20/2006 3:41:34 AM
Gravatar
Total Posts 92

Virtual sites, "User that can edit content:" list wrong...

I don't know if this is a coding problem, or a setup problem.  

I'm experimenting on my home server with two domains, one installation and have run into a minor problem.  When using the feature "User that can edit content:" it populates the combobox from users of Site 1 instead of Site 2.

mojoPortal SVN 987
mono-1.1.15
xsp-1.1.15
mod_mono-1.1.14
Apache 2.0.52-22
MySql 5.0.16
5/21/2006 5:12:03 AM
Gravatar
Total Posts 18439

Re: Virtual sites, "User that can edit content:" list wrong...

Hi Richard,

That worked correctly the last time I tried it. I'll look into it as soon as I get a chance.

Thanks,

Joe
5/23/2006 2:42:03 AM
Gravatar
Total Posts 92

Re: Virtual sites, "User that can edit content:" list wrong...

I bought a second domain just for my own personal use, and thought that I can test two sites at home to see if the same problem happens that happened here at the office.

1) So, I set up my mojoportal site.
2) I went to Admin->Site Settings
3) New Site, entered the site name, Save
4) Entered host name, Add Host

At that point the two domains are seperate, user lists are seperate, etc...

When editing any of the module settings, the "User that can edit content:" combobox list shows the users from site 1 as follows.

FullName1
EmailAddress1

FullName2
EmailAddress2

FullName2
EmailAddress2

I need to finish off some work today, but I'll try to look at the source this afternoon if my users on the network leave me alone for any amount of time today.
5/23/2006 3:00:01 AM
Gravatar
Total Posts 18439

Re: Virtual sites, "User that can edit content:" list wrong...

Hi Richard,

I just took a quick look at the code in ~/Services/UserDropDown.aspx.cs and much to my horror I see a hard coded siteID = 1

That certainly explains the cause of your symptom, much to my embarrasment

The fix is to add:

SiteSettings siteSettings = SiteSettings.GetCurrent();
and then pass in siteSettings.SiteID

I will fix that tonight after work and commit to svn.

Cheers,

Joe
5/23/2006 3:14:34 AM
Gravatar
Total Posts 92

Re: Virtual sites, "User that can edit content:" list wrong...

Hahaha.   Been there, done that...   No worries, I just postponed training the user a day.  Glad it was an easy fix!
When things slow down around here I'm looking forward to digging through your code and helping out a little.

Thanks!
5/23/2006 1:26:54 PM
Gravatar
Total Posts 18439

Re: Virtual sites, "User that can edit content:" list wrong...

This is now fixed in svn trunk.

btw, if you would like to be on the list to get email notification when svn commits are made just shoot me an email at joe_audette at yahoo dotcom

Cheers,

Joe
You must sign in to post in the forums. This thread is closed to new posts.