CC-2646: Set a calendar view default (Day/week/month)  that's remembered
CC-2646: Set a calendar view default (Day/week/month)  that's remembered

1. If the preference is not user-specific, or if id is null, set subjid to null

2. Rewrote the code for the setValue logic, added comments. Should be easier
to read and understand

Ryex/airtime,justvanbloom/airtime,sourcefabric/airtime,sourcefabric/Airtime,Ryex/airtime,Lapotor/libretime,sourcefabric/airtime,thnkloud9/Airtime,justvanbloom/airtime,sourcefabric/Airtime,ReganDryke/airtime,comiconomenclaturist/libretime,radiorabe/airtime,justvanbloom/airtime,radiorabe/airtime,sourcefabric/Airtime,thnkloud9/Airtime,radiorabe/airtime,justvanbloom/airtime,Ryex/airtime,sourcefabric/Airtime,Lapotor/libretime,Ryex/airtime,ReganDryke/airtime,radiorabe/airtime,sourcefabric/airtime,LibreTime/libretime,LibreTime/libretime,comiconomenclaturist/libretime,ReganDryke/airtime,thnkloud9/Airtime,sourcefabric/airtime,Lapotor/libretime,LibreTime/libretime,sourcefabric/Airtime,ReganDryke/airtime,radiorabe/airtime,Ryex/airtime,justvanbloom/airtime,comiconomenclaturist/libretime,ReganDryke/airtime,justvanbloom/airtime,sourcefabric/airtime,Ryex/airtime,radiorabe/airtime,LibreTime/libretime,sourcefabric/airtime,Lapotor/libretime,justvanbloom/airtime,thnkloud9/Airtime,comiconomenclaturist/libretime,sourcefabric/airtime,thnkloud9/Airtime,ReganDryke/airtime,LibreTime/libretime,comiconomenclaturist/libretime,Lapotor/libretime,thnkloud9/Airtime,thnkloud9/Airtime,sourcefabric/Airtime,comiconomenclaturist/libretime,comiconomenclaturist/libretime,Ryex/airtime,sourcefabric/Airtime,radiorabe/airtime,ReganDryke/airtime,Lapotor/libretime,LibreTime/libretime